home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / NONPORT.ZIP / BREAKCHA.C < prev    next >
Text File  |  1992-11-21  |  1KB  |  48 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef breakchar
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_breakcha = "$Header: c:/curses/nonport/RCS/breakcha.c%v 2.0 1992/11/15 03:18:25 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   breakchar()  - Return's user's current break character.
  15.  
  16.   PDCurses Description:
  17.  
  18.        This routine will return the current BREAK char.  This is a
  19.        routine and not a macro in anticipation of providing
  20.        user-specified BREAK chars.
  21.  
  22.   PDCurses Return Value:
  23.        The (chtype) character value that is the user's current break
  24.        character.  This is currently hardcoded, but provided in
  25.        anticipation of providing support for a user defined break char.
  26.  
  27.   PDCurses Errors:
  28.        No errors are defined for this function.
  29.  
  30.   Portability:
  31.        PDCurses        chtype  breakchar(void);
  32.        BSD Curses
  33.        SYS V Curses
  34. **man-end**********************************************************************/
  35.  
  36. chtype breakchar(void)
  37. {
  38. #ifdef FLEXOS
  39.        return( (chtype) 0x03 );
  40. #endif
  41. #ifdef DOS
  42.        return( (chtype) 0x03 );                        /* Control-C */
  43. #endif
  44. #ifdef OS2
  45.        return( (chtype) 0x03 );                        /* Control-C */
  46. #endif
  47. }
  48.